package me.panpf.sketch.drawable;


import me.panpf.sketch.zoom.PixmapBuild;
import ohos.agp.components.element.PixelMapElement;
import ohos.global.resource.Resource;
import ohos.media.image.ImageSource;
import ohos.media.image.PixelMap;

public class MiPixmapElement extends PixelMapElement {
    PixmapBuild pixmapBuild;


    public MiPixmapElement(PixmapBuild source) {
        super(source.getPixelMap());
        this.pixmapBuild = source;
    }


    public MiPixmapElement(Resource resource) {
        super(resource);
        pixmapBuild = new PixmapBuild(ImageSource.create(resource, null));
    }

    public MiPixmapElement(Resource resource, boolean startDecode) {
        super(resource, startDecode);
        pixmapBuild = new PixmapBuild(ImageSource.create(resource, null));
    }

    public PixmapBuild getPixmapBuild() {
        return pixmapBuild;
    }
}
